<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>对象</title>
	<script type="text/javascript">

		function Car() {
			this.name = "奥迪";
			this.color = 'red';
			this.run  = function () {
				alert(this.name+'可以跑')
			}
			this.paoniu  = function () {

				this.color = '蓝色';

				// alert(this.color)
			}
			this.zairen = function () {
				alert(this.color);
			}
		}
		obj = new Car();

		// obj.name = "奥拓";
		// 
		obj.run();

		// obj.run();

		// obj1 = new Car();

		// alert();
		document.write();

		// window.alert();

		// console.log(document);




	</script>
</head>
<body>
	
</body>
</html>